<!DOCTYPE HTML>
<!--<html xmlns="http://www.w3.org/1999/xhtml">-->
<html lang="en-Us" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

</html>

<head>
    <meta charset="UTF-8"/>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="generator" content="pandoc"/>
    <title>DLO-HiC Analyse Tool</title>
    <!--<link rel="stylesheet" type="text/css" href="./style.css" media="all"/>-->
    <style>
        /*.intro {*/
        /*    font-size: 17px;*/
        /*    color: #585858;*/
        /*    line-height: 24px;*/
        /*    margin-bottom: 5px;*/
        /*    font-weight: 400;*/
        /*}*/

        .line {
            background: transparent url(icons/line.png) repeat-x;
            height: 2px;
            padding: 20px 0 0 0;
            line-break: 0px;
        }

        h1.title {
            padding: 0;
        }

        /*-----------------------------------------------------------------------------------*/
        /*	RESET
        /*-----------------------------------------------------------------------------------*/

        html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend {
            margin: 0;
            padding: 0;
            border: 0;
            outline: 0;
            font-size: 100%;
            vertical-align: baseline;
            background: transparent
        }

        body {
            line-height: 1;
            background-color: #FFFFFF;
            font-family: Arial, sans-serif;
            font-size: 13px;
            color: #585858;
        }

        /*-----------------------------------------------------------------------------------*/
        /*	GENERAL
        /*-----------------------------------------------------------------------------------*/

        html, body {
            height: 100%;
        }

        p {
            line-height: 20px;
            margin-bottom: 5px;
            margin-top: 5px;
        }

        h1, h2, h3 {
            color: #4a4a4a;
            font-weight: normal;
            margin: 0 0 10px 0;

        }

        h1 {
            color: #703030;
            font-size: 26px;
            line-height: 26px;
            font-weight: 800;
        }

        h2 {
            color: dodgerblue;
            font-size: 20px;
            line-height: 24px;
        }

        h3 {
            font-size: 18px;
            line-height: 22px;
            font-weight: 700;
        }

        img {
            display: inherit;
            text-align: center;
            max-width: 100%;
            max-height: 100%;
            -webkit-box-sizing: content-box;
            -moz-box-sizing: content-box;
            box-sizing: content-box;
        }

        h3 img {
            vertical-align: middle;
            padding-right: 10px;
            display: inline;
        }

        #wrapper {
            width: 1070px;
            margin: 0 auto;
            overflow: hidden;
        }

        #content {
            width: 770px;
            float: right;
            padding-top: 20px;
            padding-right: 0;
            padding-left: 0;
            padding-bottom: 20px;
        }

        #sidebar {
            width: 275px;
            /*height: 100%; */
            /*background: #596d7f url(icons/noize.png) repeat 100% 0; */
            background: #3D3D3D;
            -webkit-box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.15);
            -moz-box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.15);
            box-shadow: inset 0px 0px 0px 1px rgba(255, 255, 255, 0.15);
            border-left: 1px solid rgba(0, 0, 0, 0.50);
            border-right: 1px solid rgba(0, 0, 0, 0.50);
            float: left;
            position: fixed;
            margin-top: -1px;
            z-index: 100;
        }

        #logo {
            text-align: left;
            padding: 40px 32px 0 45px;
        }

        #logo a {
            border: none;
        }

        #logo img {
            display: inline;
        }

        #footer {
            background: transparent url(icons/footer-line.png) repeat-x top center;
            overflow: hidden;
            padding: 20px 0 0 0;
            margin-top: 40px;
        }

        /*-----------------------------------------------------------------------------------*/
        /*	MENU
        /*-----------------------------------------------------------------------------------*/

        #menu {
            width: 245px;
            float: left;
            text-align: left;
            /*font-family: 'Amaranth', sans-serif; */

            font-size: 17px;
            margin-top: 40px;
            margin-bottom: 24px;
            position: relative;
            z-index: 100;
            padding: 0 0 0 15px;
            /*text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.5);*/

        }

        table {
            font-family: 'Times New Roman', sans-serif;
            font-size: 14px;
            /*	margin: 10px; */
            width: 700px;
            border-collapse: collapse;
            color: black;

        }

        table.mytable th {
            font-size: 16px;
            font-weight: normal;
            padding: 10px 8px;

        }

        table.mytable td {
            padding: 8px;
        }

        table.mytable tr:nth-child(2n) {
            background: #EEEEEE;
        }

        /*#extra {*/
        /*    text-align: right;*/
        /*}*/

        /* Base Styles */
        #menu,
        #menu ul,
        #menu li,
        #menu a {
            /*padding-left: 5px; */
            padding-bottom: 8px;
            /*border: 0; */
            list-style: none;
            font-weight: normal;
            text-decoration: none;
            /*line-height: 20;*/
            /*font-family: 'Open Sans', sans-serif;*/
            font-size: 14px;
            position: relative;
            line-height: 1.3;
        }

        #menu > ul > li > a {
            padding-right: 40px;
            /*font-size: 25px; */
            font-weight: bold;
            display: block;
            background: #3D3D3D;
            color: #EEEEEE;
            border-bottom: 1px solid #5c5c5c;
            /* text-transform: uppercase; */
        }

        #menu > ul > li > a:hover {
            text-decoration: none;
        }

        #menu > ul > li.active {
            border-bottom: none;
        }

        #menu > ul > li.active > a {
            color: #fff;
        }

        #menu span.cnt {
            position: absolute;
            top: 3px;
            right: 3px;
            padding: 0;
            margin: 0;
            background: none;
        }

        /* Sub menu */
        #menu ul ul {
            display: none;
        }

        #menu ul ul li {
            border: 1px solid #e0e0e0;
            border-top: 0;
        }

        #menu ul ul a {
            padding: 10px;
            display: block;
            color: #ed1144;
            font-size: 13px;
        }

        #menu ul ul a:hover {
            color: #bd0e36;
        }

        #menu ul ul li.odd {
            background: #f4f4f4;
        }

        #menu ul ul li.even {
            background: #fff;
        }

        /*.help {*/
        /*    float: right;*/
        /*}*/

        #content_head {
            width: 770px;
            float: right;
            padding-bottom: 0;
        }
    </style>
    <script src="./jquery.min.js" type="text/javascript"
            th:src="'data:text/javascript;base64,'+${JqueryJsStr}"></script>
    <script src="./script.js" type="text/javascript" th:src="'data:text/javascript;base64,'+${ScriptJsStr}"></script>
</head>

<body link="#1C25C7" vlink="#D211DD">
<!-- Begin Wrapper -->
<div id="wrapper">
    <!-- Begin Sidebar -->
    <div id="sidebar">
        <div id="logo">
            <a style="color: white; font-size: 40px;">DLO-HiC</a>
            <!--        <img src="aa" alt="DLO-HiC" />-->
        </div>
        <!-- Begin Menu -->
        <div id="menu" class="menu-v">
            <ul>
                <li><a href="#Running_info" class="active">Running information</a>
                    <ul>
                        <li><a href="#RI_ConfigureInformation">Configure information</a></li>
                    </ul>
                </li>
                <li><a href="#Linker_filter" class="active">Linker Filtering</a>
                    <ul>
                        <li><a href="#LF_Basic_statistics">Basic statistics</a></li>
                        <li><a href="#LF_Base_distribution_in_adapter_detection">Base distribution in adapter
                            detection</a></li>
                        <li><a href="#LF_LinkerAlignScoreDis">Linker score distribution</a></li>
                        <li><a href="#LF_Tag_length_dis">Tag length distribution</a></li>
                    </ul>
                </li>
                <li><a href="#Alignment">Alignment</a>
                    <ul>
                        <li><a href="#AL_Basic_statistics">Basic statistics</a></li>
                    </ul>
                </li>
                <li><a href="#Noise_reduction">Noise Reduction</a>
                    <ul>
                        <li><a href="#NR_Basic_statistics">Basic statistics</a></li>
                        <li><a href="#NR_OriPosStat">Orientation-Position statistics</a></li>
                        <li><a href="#NR_Annotation_statistics">Annotation statistics</a></li>
                        <li><a href="#NR_InteractionDistanceDistribution">Interaction distance distribution</a></li>
                    </ul>
                </li>
                <li><a href="#Matrix_report">Matrix report</a>
                    <ul>
                        <li><a href="#MR_Basic">Basic</a></li>
                        <li><a href="#MR_Heatmap">Heatmap</a></li>

                    </ul>
                </li>


            </ul>
        </div>
        <!-- End Menu -->


    </div>
    <!-- End Sidebar -->
    <div id="content_head">
        <p align="right" th:text="${Date}">2018-09-09</p>
    </div>
    <!-- Begin Content -->
    <div id="content">

        <h1 class="title" id="Running_info">Running information</h1>
        <div class="line"></div>
        <h2 id="RI_ConfigureInformation"><strong>Configure information</strong></h2>
        <h2>
            <!--        <iframe width=8 00 height=1 90 src="images/Rplot25.html"></iframe>-->
            <table align="center" width="200" border="1" style="table-layout: fixed">
                <tbody>
                <tr>
                    <td width="133" nowrap="nowrap">Input file:</td>
                    <td width="264" th:text="${InputFile}">&nbsp;</td>
                    <td width="112" nowrap="nowrap">Min Linker length:</td>
                    <td width="163" th:text="${MinLinkerLen}">&nbsp;</td>
                </tr>
                <tr>
                    <td nowrap="nowrap">Output folder:</td>
                    <td th:text="${OutPath}">&nbsp;</td>
                    <td nowrap="nowrap">Max reads length:</td>
                    <td th:text="${MaxReadsLen}">&nbsp;</td>
                </tr>
                <tr>
                    <td nowrap="nowrap">Output prefix:</td>
                    <td th:text="${Prefix}">&nbsp;</td>
                    <td nowrap="nowrap">Match score:</td>
                    <td th:text="${MatchScore}">&nbsp;</td>
                </tr>
                <tr>
                    <td height="28" nowrap="nowrap">Genome file:</td>
                    <td th:text="${AlignmentStat.GenomeFile}">&nbsp;</td>
                    <td nowrap="nowrap">MisMatch score:</td>
                    <td th:text="${MisMatchScore}">&nbsp;</td>
                </tr>
                <tr>
                    <td height="28" nowrap="nowrap">Genome index prefix:</td>
                    <td th:text="${AlignmentStat.GenomeIndex}">&nbsp;</td>
                    <td nowrap="nowrap">InDel score:</td>
                    <td th:text="${InDelScore}">&nbsp;</td>
                </tr>
                <tr>
                    <td width="133" nowrap="nowrap">HalfLinkerA:</td>
                    <td th:text="${HalfLinkerA}">&nbsp;</td>
                    <td nowrap="nowrap">Resolution:</td>
                    <td th:text="${#strings.arrayJoin(Resolution,' ')}">&nbsp;</td>
                </tr>
                <tr>
                    <td nowrap="nowrap">HalfLinkerB:</td>
                    <td th:text="${HalfLinkerB}">&nbsp;</td>
                    <td nowrap="nowrap">Thread:</td>
                    <td th:text="${Thread}">&nbsp;</td>
                </tr>
                <tr>
                    <td nowrap="nowrap">Restriction:</td>
                    <td th:text="${Restriction}">&nbsp;</td>
                    <td nowrap="nowrap">&nbsp;</td>
                    <td>&nbsp;</td>
                </tr>
                </tbody>
            </table>
        </h2>
        <hr>
        <h1 class="title" id="Linker_filter">Linker Filter</h1>
        <h2 id="LF_Basic_statistics"><strong>Basic statistics</strong></h2>
        <h2>
            <!--        <iframe width=8 00 height=4 40 src="images/Rplot1.html"></iframe>-->
            <table align="center" width="200" border="1" style="table-layout: fixed;">
                <tbody>
                <tr>
                    <td width="122" nowrap="nowrap">Adapter Sequence:</td>
                    <td colspan="2" style="word-break: break-all; word-wrap: break-word; line-height: 100%;"
                        th:utext="${AdapterSeq}">&nbsp;
                    </td>
                </tr>
                <tr>
                    <td nowrap="nowrap">Total reads:</td>
                    <td th:text="${#numbers.formatInteger(LinkerFilterStat.InputNum,1,'COMMA')}">&nbsp;</td>
                    <td th:text="${#numbers.formatDecimal(LinkerFilterStat.InputNum/Tool.ToDouble(LinkerFilterStat.InputNum)*100,1,2)}+'%'">
                        &nbsp;

                    </td>
                </tr>
                <tr th:each="Linker : ${LinkerFilterStat.linkers}">
                    <td nowrap="nowrap" th:text="${Linker.Linker.getType()}+':'">AA:</td>
                    <td width="271" th:text="${#numbers.formatInteger(Linker.MatchableNum,1,'COMMA')}">&nbsp;</td>
                    <td width="285"
                        th:text="${#numbers.formatDecimal(Linker.MatchableNum/Tool.ToDouble(LinkerFilterStat.InputNum)*100,1,2)}+'%'">
                        &nbsp;
                    </td>
                </tr>

                <tr>
                    <td nowrap="nowrap">Ambiguous:</td>
                    <td th:text="${#numbers.formatInteger(LinkerFilterStat.LinkerUnmatchableNum,1,'COMMA')}">&nbsp;</td>
                    <td th:text="${#numbers.formatDecimal(LinkerFilterStat.LinkerUnmatchableNum/Tool.ToDouble(LinkerFilterStat.InputNum)*100,1,2)}+'%'">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td nowrap="nowrap">Valid pair:</td>
                    <td th:text="${#numbers.formatInteger(LinkerFilterStat.total.ValidPairNum,1,'COMMA')}">&nbsp;</td>
                    <td th:text="${#numbers.formatDecimal(LinkerFilterStat.total.ValidPairNum/Tool.ToDouble(LinkerFilterStat.InputNum)*100,1,2)}+'%'">
                        &nbsp;

                    </td>
                </tr>

                <tr>
                    <td nowrap="nowrap">Output folder:</td>
                    <td colspan="2" th:text="${LinkerFilterStat.OutDir}">&nbsp;</td>
                </tr>
                </tbody>
            </table>
        </h2>
        <div class="line"></div>
        <h2 id="LF_Base_distribution_in_adapter_detection">Base distribution in adapter detection</h2>
        <h2 align="center">
            <img src="./images/test.adapter_detection.base.freq.png"
                 th:src="'data:image/png;base64,'+${Report.GetBase64(LinkerFilterStat.AdapterBaseDisPng)}" alt=""/>
        </h2>

        <div class="line"></div>
        <h2 id="LF_LinkerAlignScoreDis">Linker alignment score distribution</h2>
        <h2 align="center">
            <img src="./images/test.linker_score_distribution.png"
                 th:src="'data:image/png;base64,'+${Report.GetBase64(LinkerFilterStat.LinkerScoreDisPng)}" alt=""/>
        </h2>

        <div class="line"></div>
        <h2 id="LF_Tag_length_dis">Tag length distribution</h2>
        <h2 align="center" th:each="ReadsLenDis : ${LinkerFilterStat.linkers}">
            <img src="./images/Test.AA.reads_length_distribution.png"
                 th:src="'data:image/png;base64,'+${Report.GetBase64(ReadsLenDis.ReadLengthDisPng)}" alt=""/>
        </h2>
        <hr>
        <h1 class="title" id="Alignment">Alignment</h1>
        <h2 id="AL_Basic_statistics"><strong>Basic statistics</strong></h2>
        <li style="list-style: none" th:each="Linker : ${AlignmentStat.linkers}">
            <h3 th:text="'Linker '+${Linker.Linker.getType()}+': '+${Linker.Linker.getSeq()}">AA</h3>
            <h2>
                <table align="center" width="200" border="1">
                    <tbody>
                    <tr>
                        <td align="center" nowrap="nowrap">Item</td>
                        <td align="center">Number</td>
                        <td align="center" nowrap="nowrap">Percentage</td>
                        <td align="center" nowrap="nowrap">Item</td>
                        <td align="center">Number</td>
                        <td align="center" nowrap="nowrap">Percentage</td>
                    </tr>
                    <tr>
                        <td width="110" nowrap="nowrap">Fastq file R1:</td>
                        <td width="110" th:text="${#numbers.formatInteger(Linker.InputNum,1,'COMMA')}">&nbsp;</td>
                        <td width="110" nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.InputNum*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;
                        </td>
                        <td width="110" nowrap="nowrap">Fastq file R2:</td>
                        <td width="110" th:text="${#numbers.formatInteger(Linker.InputNum,1,'COMMA')}">&nbsp;</td>
                        <td width="110" nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.InputNum*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap">Unique map R1:</td>
                        <td th:text="${#numbers.formatInteger(Linker.R1Mapped,1,'COMMA')}">&nbsp;</td>
                        <td nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.R1Mapped*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;
                        </td>
                        <td nowrap="nowrap">Unique map R2:</td>
                        <td th:text="${#numbers.formatInteger(Linker.R2Mapped,1,'COMMA')}">&nbsp;</td>
                        <td nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.R2Mapped*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap">Multi map R1:</td>
                        <td th:text="${#numbers.formatInteger(Linker.R1MultiMapped,1,'COMMA')}">&nbsp;</td>
                        <td nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.R1MultiMapped*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;

                        </td>
                        <td nowrap="nowrap">Multi map R2:</td>
                        <td th:text="${#numbers.formatInteger(Linker.R2MultiMapped,1,'COMMA')}">&nbsp;</td>
                        <td nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.R2MultiMapped*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;

                        </td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap">Unmap R1:</td>
                        <td th:text="${#numbers.formatInteger(Linker.R1Unmapped,1,'COMMA')}">&nbsp;</td>
                        <td nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.R1Unmapped*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;

                        </td>
                        <td nowrap="nowrap">Unmap R2:</td>
                        <td th:text="${#numbers.formatInteger(Linker.R2Unmapped,1,'COMMA')}">&nbsp;</td>
                        <td nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.R2Unmapped*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap">Merge:</td>
                        <td th:text="${#numbers.formatInteger(Linker.MergeNum,1,'COMMA')}">&nbsp;</td>
                        <td nowrap="nowrap"
                            th:text="${#numbers.formatDecimal(Linker.MergeNum*100/Tool.ToDouble(Linker.InputNum),1,2)}+'%'">
                            &nbsp;
                        </td>
                        <td nowrap="nowrap">&nbsp;</td>
                        <td nowrap="nowrap">&nbsp;</td>
                        <td nowrap="nowrap">&nbsp;</td>
                    </tr>
                    <tr>
                        <td nowrap="nowrap">Output folder:</td>
                        <td colspan="5" th:text="${AlignmentStat.OutDir}">&nbsp;</td>
                    </tr>
                    </tbody>
                </table>
            </h2>
        </li>
        <h2>
            <hr>
        </h2>
        <h1 class="title" id="Noise_reduction">Noise Reduction</h1>
        <h2 id="NR_Basic_statistics"><strong>Basic statistics</strong></h2>

        <p th:text="'Input: '+${#numbers.formatInteger(NoiseReduceStat.total.RawDataNum,1,'COMMA')}">Input:</p>
        <h2>
            <table align="center" width="200" border="1" style="table-layout: fixed">
                <tbody>
                <tr>
                    <td width="91" align="center" nowrap="nowrap">Item</td>
                    <td width="70" align="center">Number</td>
                    <td width="90" align="center" nowrap="nowrap">Percentage</td>
                    <!--                    <td width="90" align="center" nowrap="nowrap">Item</td>-->
                    <!--                    <td width="66" align="center" nowrap="nowrap">Number</td>-->
                    <!--                    <td width="94" align="center" nowrap="nowrap">Percentage</td>-->
                </tr>
                <tr>
                    <td align="center" nowrap="nowrap">Self-Ligation:</td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.total.SelfLigationNum,1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatDecimal(NoiseReduceStat.total.SelfLigationNum*100/Tool.ToDouble(NoiseReduceStat.total.RawDataNum),1,2)}+'%'">
                        &nbsp;
                    </td>
                <tr>
                    <td align="center" nowrap="nowrap">ReLigation:</td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.total.ReLigationNum,1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatDecimal(NoiseReduceStat.total.ReLigationNum*100/Tool.ToDouble(NoiseReduceStat.total.RawDataNum),1,2)}+'%'">
                        &nbsp;
                    </td>
                </tr>
                </tr>
                <tr>
                    <td align="center" nowrap="nowrap">Duplicate:</td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.total.DuplicateNum,1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatDecimal(NoiseReduceStat.total.DuplicateNum*100/Tool.ToDouble(NoiseReduceStat.total.RawDataNum),1,2)}+'%'">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center" nowrap="nowrap">Clean data:</td>
                    <td nowrap="nowrap" th:text="${#numbers.formatInteger(NoiseReduceStat.total.CleanNum,1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatDecimal(NoiseReduceStat.total.CleanNum*100/Tool.ToDouble(NoiseReduceStat.total.RawDataNum),1,2)}+'%'">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center" nowrap="nowrap">Intra-chrom:</td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.total.SameCleanNum,1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatDecimal(NoiseReduceStat.total.SameCleanNum*100/Tool.ToDouble(NoiseReduceStat.total.CleanNum),1,2)}+'%'">
                        &nbsp;
                    </td>
                <tr>
                    <td align="center" nowrap="nowrap">Inter-chrom:</td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.total.DiffCleanNum,1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatDecimal(NoiseReduceStat.total.DiffCleanNum*100/Tool.ToDouble(NoiseReduceStat.total.CleanNum),1,2)}+'%'">
                        &nbsp;
                    </td>
                </tr>
                </tr>
                <tr>
                    <td align="center" nowrap="nowrap">Short range:</td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.total.ShortRangeNum,1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatDecimal(NoiseReduceStat.total.ShortRangeNum*100/Tool.ToDouble(NoiseReduceStat.total.SameCleanNum),1,2)}+'%'">
                        &nbsp;
                    </td>
                <tr>
                    <td align="center" nowrap="nowrap">Long range:</td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.total.LongRangeNum,1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td nowrap="nowrap"
                        th:text="${#numbers.formatDecimal(NoiseReduceStat.total.LongRangeNum*100/Tool.ToDouble(NoiseReduceStat.total.SameCleanNum),1,2)}+'%'">
                        &nbsp;
                    </td>
                </tr>
                </tr>
                </tbody>
            </table>
        </h2>
        <!--      </li>-->
        <div class="line"></div>
        <h2 id="NR_OriPosStat">Orientation-Position statistics</h2>
        <p>'+' and '-' represent the orientation of alignment, 's' means reads located in the 5' end of restriction
            fragment and 't' means reads located in the 3' end of restriction fragment </p>
        <h2>
            <table align="center" width="200" border="1">
                <tbody>
                <tr>
                    <td>&nbsp;</td>
                    <td align="center">s,s</td>
                    <td align="center">s,t</td>
                    <td align="center">t,s</td>
                    <td align="center">t,t</td>
                </tr>
                <tr>
                    <td align="center">+,+</td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('+,+').get('s,s')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('+,+').get('s,t')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('+,+').get('t,s')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('+,+').get('t,t')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center">+,-</td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('+,-').get('s,s')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('+,-').get('s,t')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('+,-').get('t,s')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('+,-').get('t,t')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center">-,+</td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('-,+').get('s,s')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('-,+').get('s,t')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('-,+').get('t,s')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('-,+').get('t,t')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td align="center">-,-</td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('-,-').get('s,s')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('-,-').get('s,t')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('-,-').get('t,s')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                    <td align="center" nowrap="bowrap"
                        th:text="${#numbers.formatInteger(NoiseReduceStat.OrientationPositionStat.get('-,-').get('t,t')[0],1,'COMMA')}">
                        &nbsp;
                    </td>
                </tr>
                </tbody>
            </table>
        </h2>

        <div class="line"></div>
        <h2 id="NR_Annotation_statistics">Annotation statistics</h2>

        <div class="line"></div>

        <h2 id="NR_InteractionDistanceDistribution">Interaction distance distribution</h2>
        <h2 align="center">
            <img src="./images/test.all.interaction_distance_distribution.png"
                 th:src="'data:image/png;base64,'+${Report.GetBase64(NoiseReduceStat.InteractionRangeDistributionPng)}"
                 alt=""/>
        </h2>
        <h2 align="center">
            <img src="./images/test.50M.interaction_distance_distribution.png"
                 th:src="'data:image/png;base64,'+${Report.GetBase64(NoiseReduceStat._50M_InteractionRangeDistributionPng)}"
                 alt=""/>
        </h2>
        <h2 align="center">
            <img src="./images/test.10M.interaction_distance_distribution.png"
                 th:src="'data:image/png;base64,'+${Report.GetBase64(NoiseReduceStat._10M_InteractionRangeDistributionPng)}"
                 alt=""/>
        </h2>
        <h2 align="center">
            <img src="./images/test.5M.interaction_distance_distribution.png"
                 th:src="'data:image/png;base64,'+${Report.GetBase64(NoiseReduceStat._2M_InteractionRangeDistributionPng)}"
                 alt=""/>
        </h2>
        <h1 class="title" id="Matrix_report">Matrix report</h1>
        <div class="line"></div>

        <h3 id="MR_Basic">Basic statistics</h3>
        <!-- <h3><img src="images/Rplot2.png" alt=""/></h3> -->
        <h2>
            <!--        <iframe width=8 00 height=3 50 src="images/Rplot2.html"></iframe>-->
        </h2>

        <h2 id="MR_Heatmap">Interaction heatmap</h2>
        <li style="list-style: none" th:each="HeatMap : ${CreateMatrixStat.draw_resolutions}">
            <h4 th:text="'Resolution '+${#numbers.formatInteger(HeatMap.Resolution,1,'COMMA')}+' bp'">Resolution
                1,000,000 bp</h4>
            <h2 align="center">
                <img src="./images/Test.interaction.1.0M.png" alt="" width="667"
                     height="546" th:src="'data:image/png;base64,'+${Report.GetBase64(HeatMap.GenomeWildHeatMapPng)}"/>
            </h2>

        </li>

        <h3 id="RS_Running_Time">Running time</h3>
        <h2>
            <table align="center" width="200" border="1">
                <tbody>
                <tr>
                    <td align="center" nowrap="nowrap">Item</td>
                    <td align="center">Value(h/m/s)</td>
                </tr>
                <tr>
                    <td nowrap="nowrap">Start time:</td>
                    <td th:text="${StartTime}">&nbsp;</td>
                </tr>
                <tr>
                    <td nowrap="nowrap">Linker filtering:</td>
                    <td th:text="${LinkerFilterTime}">&nbsp;</td>
                </tr>
                <tr>
                    <td nowrap="nowrap">Mapping:</td>
                    <td th:text="${MappingTime}">&nbsp;</td>
                </tr>
                <tr>
                    <td height="20" nowrap="nowrap">Noise Reduction:</td>
                    <td th:text="${NoiseReduceTime}">&nbsp;</td>
                </tr>
                <tr>
                    <td height="20" nowrap="nowrap">Create matrix:</td>
                    <td th:text="${MakeMatrixTime}">&nbsp;</td>
                </tr>
                <tr>
                    <td height="20" nowrap="nowrap">Total:</td>
                    <td th:text="${TotalTime}">&nbsp;</td>
                </tr>
                </tbody>
            </table>
        </h2>


        <div id="footer">
            <p>1. Please use Chrome, Firefox or Safari for better browsing experience.</p>
            <p>2. Detailed explanation can be found at
                <a href="https://github.com/GuoliangLi-HZAU/DHat" target="_blank">https://github.com/GuoliangLi-HZAU/DHat</a>.
            </p>
        </div>

    </div>


</div>
<div class="helpNote" style="display:none">
    <div id="Rplot1_note">dd</div>
</div>
</body>
